package com.study.mike.common.utils;

import cn.hutool.extra.spring.SpringUtil;
import com.study.mike.model.entity.User;
import com.study.mike.service.UserService;

/**
 * bean注入
 *
 * @author kh
 */
public class MyBeansUtil {
    private final UserService userService;

    public MyBeansUtil() {
        this.userService = SpringUtil.getBean(UserService.class);
    }
    public User test() {
        return userService.getOne(null);
    }


}
